home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mintmant / pfork.txt < prev    next >
Text File  |  1992-03-24  |  1KB  |  64 lines

  1. Pfork(2)                  Oct. 1, 1991                   Pfork(2)
  2.  
  3.  
  4.  
  5. NAME
  6.      Pfork - create a copy of the current process
  7.  
  8. SYNOPSIS
  9.      WORD Pfork();
  10.  
  11. DESCRIPTION
  12.      Pfork creates a copy of the current process. The child  (the
  13.      new process created) inherits a copy of the parent's address
  14.      space, not the parent's original memory, and so  changes  to
  15.      variables  in the child do not affect the parent in any way.
  16.      The new process begins execution  with  an  apparent  return
  17.      from the Pfork call.
  18.  
  19. RETURNS
  20.      0 in the child
  21.  
  22.      The new process id (a positive number), in the parent.
  23.  
  24.      ENSMEM if there is not enough memory to create the new  pro-
  25.      cess.
  26.  
  27. SEE ALSO
  28.      Pexec(2), Pvfork(2)
  29.  
  30. BUGS
  31.      If the parent is in supervisor mode when this call is  made,
  32.      the  child  will be started in user mode anyway; thus, it is
  33.      strongly recommended that this call be made only  from  user
  34.      mode.
  35.  
  36.      The current implementation of Pfork acts like Pvfork in that
  37.      the  parent  is  suspended  until  the child either exits or
  38.      overlays itself with Pexec mode 200. Do  not  rely  on  this
  39.      behavior, as it will be changed in future versions of MiNT.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Version 0.9   Last change: MiNT Programmer's Manual             1
  61.  
  62.  
  63.  
  64.